#include<bits/stdc++.h>
using namespace std;
#define int long long

int cnt[10005], a[10005];

signed main() {
	int n;
	cin >> n;
	for (int i = 1; i <= n; i++) {
		cin >> a[i];
		cnt[a[i]]++;
	}

	for (int i = 1; i <= n; i++) {
		if (cnt[a[i]] == 1) {
			cout << i << " " << a[i] << endl;
			return 0;
		}
	}
	cout << "None";
	return 0;
}
